﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dblayer;
using Modellayer;

namespace Controllayer
{
    public class ShowRoomCtr
    {
        DbShowRoom dbSh;

        public ShowRoomCtr()
        {
            dbSh = new DbShowRoom();
        }

        public void createShowRoom(int numberOfSeats)
        {
            int showRoomNumber = dbSh.getShowRoomNumber()+1;
            ShowRoom sh = new ShowRoom(showRoomNumber, numberOfSeats, "");
        }

        public void updateShowRoom(int showRoomNumber, int numberOfSeats)
        {
            ShowRoom sh = dbSh.findShowRoom(showRoomNumber.ToString());
            sh.numberOfSeats = numberOfSeats;
            dbSh.updateShowRoom(sh);
        }
        
    }
}
